Skip to main content

Create DML Parameter in dataset.

DML using parameter: From this document you will learn to create the DML dataset which contains parameter.

Follow steps to create DML using parameter dataset in OPNBI:-

Follow steps to create DML dataset in OPNBI: -

  1. Go to Dataset section, Click on Create DML from bottom menu bar. As shown in figure below:

Docusaurus Slash Introduction

  1. The Create Data Module dialog box looks as shown in figure below:

Docusaurus Slash Introduction

  1. Enter Following detail in DML Module dialog box:

    Enter name: DML Parameter Select Source: Training Mapping Expend tables from left side table view, As shown in figure below:

  2. Drag and Drop the OFFICES and CUSTOMERS table from table box and drag to diagram box at right side, and select all the columns from Select Column dialog box, as shown in figure below:

Docusaurus Slash Introduction

  1. Click Add Parameter icon to add parameter in DML.

Docusaurus Slash Introduction

  1. After clicking on Parameter icon, the Parameter dialog box load as shown in figure below:

Docusaurus Slash Introduction

  1. Add Following values in Parameter dialog box:

    Name: country, Direction: IN, Data Type: VARCHAR, Default Value: USA, Linked Parameter: None. Click on Submit button after adding the data, you can compare your screen in figure below:

Docusaurus Slash Introduction

  1. Drag and drop the COUNTRY column from OFFICES table to CUSTOMERS table, as shown in figure below:

Docusaurus Slash Introduction

  1. Click on the connection between two tables, the DML configuration will pop-up on screen. as shown in figure below:

Docusaurus Slash Introduction

  1. Click on Add Condition button, it will get the Create condition dialog box on screen.

Docusaurus Slash Introduction

  1. Select AND option from top,

    COUNTRY in column, Condition as Equal, {{country}} parameter, Click on Get Condition button to submit the condition.

Docusaurus Slash Introduction

  1. Click on Submit button after adding the condition into DML Configuration.

Docusaurus Slash Introduction

  1. Create Dashboard from the Visualization section. Example name: DML Parameter, as shown in figure below:

Docusaurus Slash Introduction

  1. After loading the Dashboard, Find Analysis Icon from the left vertical menu bar, click on the icon to load analysis widget in dashboard.

Docusaurus Slash Introduction

  1. The Analysis widget will get load in dashboard automatically after clicking on the analysis icon.

Docusaurus Slash Introduction

  1. Select Dataset as DML Left join, as shown in figure below:

Docusaurus Slash Introduction

  1. As select parameter in Analysis widget, The Dataset parameter dialog box pop-up on screen with default value in country column, Click on Submit.

Docusaurus Slash Introduction

  1. Click on Field icon from widget, as shown in figure below:

Docusaurus Slash Introduction

  1. The Analysis Selection dialog box will open, in the dialog box from the Datasets (dml) dropdown select the Dataset as DML Parameter. as shown in figure below:

Docusaurus Slash Introduction

Docusaurus Slash Introduction

  1. From the Analysis Selection dialog box, Drag and drop the COUNTRY {For Rows} and CREDITLIMIT {For Values (Select: SUM)} from OFFICES table, and TERRITORY column {For Columns} from CUSTOMERS table, as shown in figure below.

Docusaurus Slash Introduction

Note: As you add value the Rows section, the Values section will take its field automatically based on Rows, user has to delete it to remove it from the box.

  1. Click on preview button, and save and exit it.

  2. Save the widget in Dashboard and Go to Preview window of dashboard to see the final output of Analysis Widget using parameter DML, as shown in figure below:

Docusaurus Slash Introduction

More features of OPNBI as follows:

DML Inner Join

DML Left Join

DML Right Join

DML Language Alias

DML using Parameter

DML with multiple join condition